package edu.bigdata;

/**
 * @Author zjh
 * @Date 2022-04-20 上午 9:57
 * 异常类
 **/
public class bulbAnomalies {
    static class WrongInputException extends Exception {  // 自定义的类
        WrongInputException(String s) {
            super(s);
        }
    }
    static class Input {
        void method() throws WrongInputException {
            throw new WrongInputException("灯泡异常！请联系管理员维修"); // 抛出自定义的类
        }
    }
}
